<template>
  <div>
    <div v-for="item in list" :key="item.id">
      <div @click="gotodetail(item.id)">
        <p>{{ item.name }}</p>
        <br />
        {{ item.createTime }}
      </div>
      <van-divider />
    </div>
  </div>
</template>

<script>
import { ActiveCompleted } from "@/service/active/active";
export default {
  data() {
    return {
      list: [],
    };
  },

  async created() {
    let { data } = await ActiveCompleted();
    // console.log(data);
    this.list = { data }.data.rows;
    // console.log(this.list);
  },
  methods: {
    gotodetail(id) {
      //  console.log(id);
      this.$router.push({ path: "activedetail/" + id });
    },
  },
};
</script>

<style>
</style>